gtk4.git
5 years agomodelbutton: Reset active menu item on pointer leave
Timm Bäder [Sun, 29 Nov 2020 08:49:08 +0000 (09:49 +0100)]
modelbutton: Reset active menu item on pointer leave

We don't want to leave an active menu item behind if the pointer doesn't
enter another menu item.
This matches the old GtkMenu behavior

5 years agopopovermenu: Connect to right controller signal
Timm Bäder [Sun, 29 Nov 2020 08:42:18 +0000 (09:42 +0100)]
popovermenu: Connect to right controller signal

leave is emitted before the new contains-pointer value is set, so the
signal handler wasn't working right.

5 years agoeventcontrollermotion: Notify by pspec
Timm Bäder [Sun, 29 Nov 2020 08:25:46 +0000 (09:25 +0100)]
eventcontrollermotion: Notify by pspec

5 years agopopovermenu: Pull variable declaration in closest scope
Timm Bäder [Sun, 29 Nov 2020 07:41:44 +0000 (08:41 +0100)]
popovermenu: Pull variable declaration in closest scope

5 years agoshortcutcontroller: Separate trigger/action early returns
Timm Bäder [Thu, 19 Nov 2020 15:27:48 +0000 (16:27 +0100)]
shortcutcontroller: Separate trigger/action early returns

We take this early return in update_accel over 36k times when starting
the widget factory and always because the action is not a named action.

5 years agoshortcutcontroller: Pass the muxer to update_accel()
Timm Bäder [Thu, 19 Nov 2020 14:57:09 +0000 (15:57 +0100)]
shortcutcontroller: Pass the muxer to update_accel()

We only needed the widget to get its action muxer. And this way we don't
have to call gtk_widget_get_action_muxer() dozens of times, just once in
set_widget().

5 years agoshortcutcontroller: Use priv->shortcuts directly in set_widget()
Timm Bäder [Thu, 19 Nov 2020 14:53:05 +0000 (15:53 +0100)]
shortcutcontroller: Use priv->shortcuts directly in set_widget()

Instead of treating the shortcut controller itself as a GListModel,
which just passes everything along from priv->shortcuts.

5 years agoshortcutcontroller: Save signal handler ID
Timm Bäder [Thu, 19 Nov 2020 14:27:25 +0000 (15:27 +0100)]
shortcutcontroller: Save signal handler ID

gtk_shortcut_controller_finalize() used to take ~13.8% when closing the
complex listbox demo in gtk4-demo. Now it takes nothing.

5 years agowidget: root child before emitting child observer signals
Timm Bäder [Thu, 19 Nov 2020 11:00:40 +0000 (12:00 +0100)]
widget: root child before emitting child observer signals

Try to avoid the childen_observer signal handlers screwing up internal
state.

Fixes #3364

5 years agowidgetprivate: Remove unused function
Timm Bäder [Sun, 15 Nov 2020 18:14:25 +0000 (19:14 +0100)]
widgetprivate: Remove unused function

5 years agogl renderer: Make minimal rounded rects more minimal
Timm Bäder [Tue, 3 Nov 2020 08:18:37 +0000 (09:18 +0100)]
gl renderer: Make minimal rounded rects more minimal

5 years agodocs: Ignore more generated Wayland protocol headers
Matthias Clasen [Wed, 25 Nov 2020 19:49:21 +0000 (14:49 -0500)]
docs: Ignore more generated Wayland protocol headers

These inject mysterious words like Airbrush, Lense and
Mouse into the list of undocumented apis. No need for that.

5 years agogsk: doc fixups
Matthias Clasen [Wed, 25 Nov 2020 19:32:23 +0000 (14:32 -0500)]
gsk: doc fixups

5 years agoMerge branch 'ebassi/cell-renderer-get-size' into 'master'
Matthias Clasen [Mon, 30 Nov 2020 14:09:03 +0000 (14:09 +0000)]
Merge branch 'ebassi/cell-renderer-get-size' into 'master'

Remove GtkCellRendererClass.get_size()

See merge request GNOME/gtk!2896

5 years agoMerge branch 'ebassi/for-master' into 'master'
Emmanuele Bassi [Mon, 30 Nov 2020 13:10:25 +0000 (13:10 +0000)]
Merge branch 'ebassi/for-master' into 'master'

Blend nodes might have NULL top/bottom nodes

See merge request GNOME/gtk!2891

5 years agoUpdate Polish translation
Piotr Drąg [Sun, 29 Nov 2020 11:11:26 +0000 (12:11 +0100)]
Update Polish translation

5 years agoUpdate Ukrainian translation
Yuri Chornoivan [Sun, 29 Nov 2020 07:53:56 +0000 (07:53 +0000)]
Update Ukrainian translation

5 years agoRemove GtkCellRendererClass.get_size()
Emmanuele Bassi [Sat, 28 Nov 2020 19:19:27 +0000 (19:19 +0000)]
Remove GtkCellRendererClass.get_size()

The get_size() vfuncs is deprecated in GTK3, and only used as a
fallback path for cell renderers that do not implement preferred
size virtual functions.

5 years agoPort CellRendererGraph to preferred size vfuncs
Emmanuele Bassi [Sat, 28 Nov 2020 19:18:55 +0000 (19:18 +0000)]
Port CellRendererGraph to preferred size vfuncs

Drop use of GtkCellRendererClass.get_size()

5 years agoPort GtkCellRendererProgress to preferred size vfuncs
Emmanuele Bassi [Sat, 28 Nov 2020 18:48:58 +0000 (18:48 +0000)]
Port GtkCellRendererProgress to preferred size vfuncs

Drop the use of GtkCellRendererClass.get_size()

5 years agoPort GtkCellRendererToggle to preferred size vfuncs
Emmanuele Bassi [Sat, 28 Nov 2020 18:37:09 +0000 (18:37 +0000)]
Port GtkCellRendererToggle to preferred size vfuncs

Drop the use of GtkCellRendererClass.get_size()

5 years agoPort GtkCellRendererSpinner to preferred size vfuncs
Emmanuele Bassi [Sat, 28 Nov 2020 18:36:28 +0000 (18:36 +0000)]
Port GtkCellRendererSpinner to preferred size vfuncs

Drop the use of GtkCellRendererClass.get_size()

5 years agoPort GtkCellRendererPixbuf to preferred size vfuncs
Emmanuele Bassi [Sat, 28 Nov 2020 18:35:54 +0000 (18:35 +0000)]
Port GtkCellRendererPixbuf to preferred size vfuncs

Drop the GtkCellRendererClass.get_size() override.

5 years agoUpdate Belarusian translation
Аляксей [Sat, 28 Nov 2020 14:30:43 +0000 (14:30 +0000)]
Update Belarusian translation

5 years agoMerge branch 'wip/jimmac/dark-prelights' into 'master'
Jakub Steiner [Fri, 27 Nov 2020 18:14:09 +0000 (18:14 +0000)]
Merge branch 'wip/jimmac/dark-prelights' into 'master'

wip/jimmac/dark prelights

Closes #3380

See merge request GNOME/gtk!2892

5 years agoAdwaita,HC: use dark prelights
Jakub Steiner [Fri, 20 Nov 2020 10:26:13 +0000 (11:26 +0100)]
Adwaita,HC: use dark prelights

- increase :hover visibility by going darker rather than lighter
  puppies died.

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3380

5 years agoUpdate Swedish translation
Anders Jonsson [Fri, 27 Nov 2020 13:35:03 +0000 (13:35 +0000)]
Update Swedish translation

5 years agoUpdate Swedish translation
Anders Jonsson [Fri, 27 Nov 2020 13:31:30 +0000 (13:31 +0000)]
Update Swedish translation

5 years agoBlend nodes might have NULL top/bottom nodes
Emmanuele Bassi [Thu, 26 Nov 2020 00:21:11 +0000 (00:21 +0000)]
Blend nodes might have NULL top/bottom nodes

We have code in place to handle a NULL node in the state when dealing
with blend nodes, but we don't always check for NULL, which leads to
warnings in the CSS Blend modes demo.

5 years agopopover: Fix a typo
Matthias Clasen [Wed, 25 Nov 2020 18:59:16 +0000 (13:59 -0500)]
popover: Fix a typo

s/Wether/Whether/

Fixes #3393

5 years agoMerge branch 'ebassi/for-master' into 'master'
Emmanuele Bassi [Wed, 25 Nov 2020 18:43:53 +0000 (18:43 +0000)]
Merge branch 'ebassi/for-master' into 'master'

Ebassi/for master

Closes #3404 and #3403

See merge request GNOME/gtk!2890

5 years agoa11y: Check before disconnecting Text signals
Emmanuele Bassi [Wed, 25 Nov 2020 18:15:04 +0000 (18:15 +0000)]
a11y: Check before disconnecting Text signals

Use the same initial check for the accessible object type that we use
when connecting the signal, in case we try to disconnect signals on
different widgets. Additionally, check before accessing data that might
have already been removed.

Fixes: #3403
5 years agoa11y: Check before disconnecting selection signals
Emmanuele Bassi [Wed, 25 Nov 2020 18:13:54 +0000 (18:13 +0000)]
a11y: Check before disconnecting selection signals

If the selection data has already been cleared we should just bail out.

Fixes: #3404
5 years agoMerge branch 'wip/jimmac/menus-darker' into 'master'
Jakub Steiner [Wed, 25 Nov 2020 13:42:55 +0000 (13:42 +0000)]
Merge branch 'wip/jimmac/menus-darker' into 'master'

Adwaita: darker selected menuitem + sidebars

Closes #3390

See merge request GNOME/gtk!2881

5 years agoUpdate Catalan translation
Jordi Mas i Hernandez [Wed, 25 Nov 2020 13:42:11 +0000 (13:42 +0000)]
Update Catalan translation

5 years agoAdwaita: darker selected menuitem + sidebars
Jakub Steiner [Mon, 23 Nov 2020 14:46:44 +0000 (15:46 +0100)]
Adwaita: darker selected menuitem + sidebars

- without sacrificing the fg/bg contrast too much, increase
  selected item visibility

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3390

5 years agoMerge branch 'wip/chergert/for-master' into 'master'
Matthias Clasen [Tue, 24 Nov 2020 17:14:53 +0000 (17:14 +0000)]
Merge branch 'wip/chergert/for-master' into 'master'

textview: fix precondition assertions

Closes #3386

See merge request GNOME/gtk!2886

5 years agotextview: fix precondition assertions
Christian Hergert [Tue, 24 Nov 2020 16:29:52 +0000 (08:29 -0800)]
textview: fix precondition assertions

It is a programmer error to call this with a child widget that has not
been placed within the GtkTextView.

Fixes #3386

5 years agoMerge branch 'fix-integer-overflow' into 'master'
Matthias Clasen [Tue, 24 Nov 2020 16:22:49 +0000 (16:22 +0000)]
Merge branch 'fix-integer-overflow' into 'master'

gdk/win32: fix integer overflow in monitor refresh rate calculation

Closes #3394

See merge request GNOME/gtk!2884

5 years agoUpdate Swedish translation
Anders Jonsson [Mon, 23 Nov 2020 22:09:28 +0000 (22:09 +0000)]
Update Swedish translation

5 years agogdk/win32: fix integer overflow in monitor refresh rate calculation
Volker Rümelin [Mon, 23 Nov 2020 20:34:01 +0000 (21:34 +0100)]
gdk/win32: fix integer overflow in monitor refresh rate calculation

In gdk/win32/gdkmonitor-win32.c in function
populate_monitor_devices_from_display_config() refresh->Numerator * 1000
overflows for refresh->Numerator > 4294976.

Cast the factor 1000 to UINT64 to prevent the overflow.

Fixes #3394

5 years agoMerge branch 'no-more-devel-headers' into 'master'
Matthias Clasen [Mon, 23 Nov 2020 19:01:44 +0000 (19:01 +0000)]
Merge branch 'no-more-devel-headers' into 'master'

Drop devel styling from our windows

See merge request GNOME/gtk!2882

5 years agoDrop devel styling from our windows
Matthias Clasen [Mon, 23 Nov 2020 17:10:01 +0000 (12:10 -0500)]
Drop devel styling from our windows

We are about to do a stable release. Time to get used
again to plain old, boring header bars.

5 years agoMerge branch 'ebassi/for-master' into 'master'
Emmanuele Bassi [Mon, 23 Nov 2020 15:41:03 +0000 (15:41 +0000)]
Merge branch 'ebassi/for-master' into 'master'

Ebassi/for master

See merge request GNOME/gtk!2876

5 years agoa11y: Cache the accessibility bus address
Emmanuele Bassi [Sun, 22 Nov 2020 18:40:50 +0000 (18:40 +0000)]
a11y: Cache the accessibility bus address

Just check for it once; doing it every time we failed to create an
ATContext is just going to fill up the logs.

5 years agoa11y: Turn critical warnings into debug messages
Emmanuele Bassi [Sun, 22 Nov 2020 18:39:39 +0000 (18:39 +0000)]
a11y: Turn critical warnings into debug messages

The accessibility bus might not be available, and if it isn't the case,
it means something has failed at a level where the user can't do much
about it. There's no need to emit a critical warning.

5 years agoMerge branch 'ebassi/glib-min-version' into 'master'
Emmanuele Bassi [Mon, 23 Nov 2020 14:33:20 +0000 (14:33 +0000)]
Merge branch 'ebassi/glib-min-version' into 'master'

Ebassi/glib min version

See merge request GNOME/gtk!2880

5 years agoDisable deprecation warnings from GLib
Emmanuele Bassi [Mon, 23 Nov 2020 12:55:05 +0000 (12:55 +0000)]
Disable deprecation warnings from GLib

We don't want to test the latest changes in GLib in our own build.

5 years agoDrop redundant dependencies
Emmanuele Bassi [Mon, 23 Nov 2020 12:56:42 +0000 (12:56 +0000)]
Drop redundant dependencies

PangoCairo already depends on Pango; Cairo-gobject already depends on
Cairo.

5 years agoDrop GLib dependency from GTK's declared dependencies
Emmanuele Bassi [Mon, 23 Nov 2020 12:29:32 +0000 (12:29 +0000)]
Drop GLib dependency from GTK's declared dependencies

We depend on GObject, which already depends on GLib; on older versions
of Meson, this ends up trying to depend on the system copy of GLib,
instead of the sub-project copy, in case the version of GLib we have
installed is too old.

5 years agoUse the right GLib macros for version checking
Emmanuele Bassi [Mon, 23 Nov 2020 11:47:21 +0000 (11:47 +0000)]
Use the right GLib macros for version checking

There's a typo in the name, and we never noticed.

5 years agoDo not depend on GLib API introduced after 2.66
Emmanuele Bassi [Mon, 23 Nov 2020 12:02:21 +0000 (12:02 +0000)]
Do not depend on GLib API introduced after 2.66

To avoid bleeding edge deprecations we use GLIB_VERSION_MIN_REQUIRED and
GLIB_VERSION_MAX_ALLOWED. Since we depend on GLib 2.66, we cannot use
API introduced in 2.67, even when conditionally compiled.

5 years agoicon-browser: Add .sidebar style class in the main window
nana-4 [Sun, 22 Nov 2020 04:54:44 +0000 (13:54 +0900)]
icon-browser: Add .sidebar style class in the main window

So the sidebar can get the proper background and border colors.

5 years agogtk-demo: Add .sidebar style class in the main window
nana-4 [Sun, 22 Nov 2020 04:51:15 +0000 (13:51 +0900)]
gtk-demo: Add .sidebar style class in the main window

So the sidebar can get the proper background and border colors.

5 years agoAdwaita: Unify sidebar background-color
nana-4 [Sun, 22 Nov 2020 05:22:39 +0000 (14:22 +0900)]
Adwaita: Unify sidebar background-color

The sidebar item style is already unified. The sidebar background-color
should be unified as well.

See https://gitlab.gnome.org/GNOME/gtk/-/issues/3382

5 years agoAdwaita: Make sidebar row styling better
nana-4 [Sun, 22 Nov 2020 03:59:28 +0000 (12:59 +0900)]
Adwaita: Make sidebar row styling better

- Reorder declaration blocks for code legibility.
- Don't lighten text color on :hover and :selected for better contrast.
- Add missing :focus-visible:focus-within styling to non-:selected row.

5 years agoAdwaita: Fix some sidebar sizing
nana-4 [Sun, 22 Nov 2020 03:24:04 +0000 (12:24 +0900)]
Adwaita: Fix some sidebar sizing

- Don't set the sidebar padding twice.
- Add padding to the assistant sidebar directly, as it doesn't have
  .navigation-sidebar internally.
- Set missing margin to the sidebar separator.

See https://gitlab.gnome.org/GNOME/gtk/-/issues/3382

5 years agoAdwaita: Move placessidebar-specific sizing from .navigation-sidebar
nana-4 [Sun, 22 Nov 2020 03:14:34 +0000 (12:14 +0900)]
Adwaita: Move placessidebar-specific sizing from .navigation-sidebar

The common .navigation-sidebar styling should be more generic.

5 years agoAdwaita: Make treeexpander styling generic
nana-4 [Sun, 22 Nov 2020 03:08:39 +0000 (12:08 +0900)]
Adwaita: Make treeexpander styling generic

The widget can be used outside .navigation-sidebar.

This also fixes the label misalignment in the widget.

5 years agostacksidebar: Add missing .navigation-sidebar to the inner list
nana-4 [Sun, 22 Nov 2020 04:36:54 +0000 (13:36 +0900)]
stacksidebar: Add missing .navigation-sidebar to the inner list

Also don't set :show-separators, which is not applied in other sidebars.

See https://gitlab.gnome.org/GNOME/gtk/-/issues/3382

5 years agoMerge branch 'scalebutton' into 'master'
Timm Bäder [Mon, 23 Nov 2020 07:38:17 +0000 (07:38 +0000)]
Merge branch 'scalebutton' into 'master'

properly set ScaleButton's parent_class

Closes #3381

See merge request GNOME/gtk!2877

5 years agoproperly set ScaleButton's parent_class
Bilal Elmoussaoui [Mon, 23 Nov 2020 01:47:03 +0000 (02:47 +0100)]
properly set ScaleButton's parent_class

GtkScaleButton doesn't subclass GtkButton anymore
Fixes #3381

5 years agoMerge branch 'nullables-1' into 'master'
Emmanuele Bassi [Sat, 21 Nov 2020 16:11:34 +0000 (16:11 +0000)]
Merge branch 'nullables-1' into 'master'

Fix some nullable return annotations

See merge request GNOME/gtk!2873

5 years agoFix some nullable return annotations
Sophie Herold [Sat, 21 Nov 2020 15:33:40 +0000 (16:33 +0100)]
Fix some nullable return annotations

5 years agoUpdate POTFILES.skip
Piotr Drąg [Sat, 21 Nov 2020 13:39:17 +0000 (14:39 +0100)]
Update POTFILES.skip

5 years agoMerge branch 'wip/jimmac/clipped-menu-shadows' into 'master'
Jakub Steiner [Fri, 20 Nov 2020 12:37:49 +0000 (12:37 +0000)]
Merge branch 'wip/jimmac/clipped-menu-shadows' into 'master'

Adwaita: avoid clipping menu shadows

Closes #1987

See merge request GNOME/gtk!2872

5 years agoRevert "Adwaita: unified sidebar styles"
Jakub Steiner [Fri, 20 Nov 2020 12:23:29 +0000 (13:23 +0100)]
Revert "Adwaita: unified sidebar styles"

Doing the same mistake twice :( Even margin is eating from the container,
not expanding outside of it.

This reverts commit 6be575992f8e5b30dc8b8f2794e6a02941dc0031.

5 years agoMerge branch 'wip/jimmac/sidebar-backdrop' into 'master'
Jakub Steiner [Fri, 20 Nov 2020 12:08:59 +0000 (12:08 +0000)]
Merge branch 'wip/jimmac/sidebar-backdrop' into 'master'

Adwaita: don't backdrop labels

Closes #3377

See merge request GNOME/gtk!2868

5 years agoAdwaita: avoid clipping menu shadows
Jakub Steiner [Fri, 20 Nov 2020 12:04:04 +0000 (13:04 +0100)]
Adwaita: avoid clipping menu shadows

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/1987

5 years agoMerge branch 'wip/jimmac/unified-sidebar-styles' into 'master'
Jakub Steiner [Fri, 20 Nov 2020 11:40:30 +0000 (11:40 +0000)]
Merge branch 'wip/jimmac/unified-sidebar-styles' into 'master'

Adwaita: unified sidebar styles

Closes #3382

See merge request GNOME/gtk!2871

5 years agoAdwaita: unified sidebar styles
Jakub Steiner [Fri, 20 Nov 2020 10:26:13 +0000 (11:26 +0100)]
Adwaita: unified sidebar styles

- stacksidebar focus, separation and color as everything else
- eliminate placessidebar double padding

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3382

5 years agoAdwaita: don't backdrop labels
Jakub Steiner [Thu, 19 Nov 2020 16:03:43 +0000 (17:03 +0100)]
Adwaita: don't backdrop labels

- instead of overriding :backdrop for sidebars, continue pursuing
  not to backdrop anything but headerbar items and buttons.

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3377

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 20 Nov 2020 02:02:10 +0000 (02:02 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2870

5 years agoMerge branch 'wip/carlosg/for-master' into 'master'
Matthias Clasen [Fri, 20 Nov 2020 01:46:03 +0000 (01:46 +0000)]
Merge branch 'wip/carlosg/for-master' into 'master'

gtk/main: Do not unset active state on button release w/o implicit grab

See merge request GNOME/gtk!2869

5 years agogtk-demo: Make a more interesting constraints demo
Matthias Clasen [Thu, 19 Nov 2020 12:30:30 +0000 (07:30 -0500)]
gtk-demo: Make a more interesting constraints demo

Show various ways to influence spacing. This is more or
less modeled on the way Androids constraint layout lets
you set up 'chains'.

5 years agogtk/main: Do not unset active state on button release w/o implicit grab
Carlos Garnacho [Thu, 19 Nov 2020 19:12:58 +0000 (20:12 +0100)]
gtk/main: Do not unset active state on button release w/o implicit grab

If an active grab gets undone on button press (e.g. closing a menu), we
will receive a button release on the new target even though it didn't handle
the button press, and disable ::active state.

This causes warnings when handling the button release, as it tries to undo
::active state that is not really there.

In order to fix this, check that the pointer focus actually had an implicit
grab at the time of receiving the button release, before trying to unset
the ::active state.

5 years agoMerge branch 'ebassi/for-master' into 'master'
Emmanuele Bassi [Thu, 19 Nov 2020 16:37:58 +0000 (16:37 +0000)]
Merge branch 'ebassi/for-master' into 'master'

Ebassi/for master

See merge request GNOME/gtk!2867

5 years agoMerge branch 'wip/chergert/gdk-macos-for-master' into 'master'
Matthias Clasen [Thu, 19 Nov 2020 16:05:47 +0000 (16:05 +0000)]
Merge branch 'wip/chergert/gdk-macos-for-master' into 'master'

GTK4: various fixes

See merge request GNOME/gtk!2864

5 years agoMerge branch 'wip/jimmac/industrial-style-menuitems' into 'master'
Jakub Steiner [Thu, 19 Nov 2020 15:52:25 +0000 (15:52 +0000)]
Merge branch 'wip/jimmac/industrial-style-menuitems' into 'master'

Adwaita: revert edge-to-edge menuitems

Closes #3366

See merge request GNOME/gtk!2866

5 years agoa11y: Hide children of GtkFishBowl
Emmanuele Bassi [Thu, 19 Nov 2020 14:47:16 +0000 (14:47 +0000)]
a11y: Hide children of GtkFishBowl

The fishbowl widget is purely presentational, and its children should
not be visible in the accessibility tree.

5 years agodemo: Make GtkFishBowl a presentation widget
Emmanuele Bassi [Thu, 19 Nov 2020 12:16:26 +0000 (12:16 +0000)]
demo: Make GtkFishBowl a presentation widget

It has no accessible content, even if it displays widgets.

5 years agoa11y: Skip atspi.Cache signals for hidden elements
Emmanuele Bassi [Thu, 19 Nov 2020 14:46:01 +0000 (14:46 +0000)]
a11y: Skip atspi.Cache signals for hidden elements

If the accessible object is hidden, we can skip the emission of the
AddAccessible and RemoveAccessible signals on the cache, as those
objects won't be visible in the accessibility tree.

5 years agoa11y: Get the accessible role once
Emmanuele Bassi [Thu, 19 Nov 2020 14:27:30 +0000 (14:27 +0000)]
a11y: Get the accessible role once

Simplify getting the accessible role when checking if an accessible
implementation should present itself; this avoids going through
GtkAccessible twice to get the same data.

5 years agoa11y: Remove weak ref from atspi.Cache
Emmanuele Bassi [Thu, 19 Nov 2020 14:25:35 +0000 (14:25 +0000)]
a11y: Remove weak ref from atspi.Cache

The GtkAtSpiContext is responsible for removing itself from the root,
which will remove itself from the cache. Any code path that leads to the
GtkAtSpiContext instance being collected passes through the
unrealization phase, which will also unregister the context from the
accessibility bus and from the cache.

5 years agoa11y: Add a fallback for the root base path
Emmanuele Bassi [Thu, 19 Nov 2020 14:24:47 +0000 (14:24 +0000)]
a11y: Add a fallback for the root base path

In case g_get_prgname() returns NULL, which seems to be the case for the
GTK tests.

5 years agoa11y: Reuse the generated AT-SPI interface name
Emmanuele Bassi [Thu, 19 Nov 2020 14:24:00 +0000 (14:24 +0000)]
a11y: Reuse the generated AT-SPI interface name

We already have the name available.

5 years agoa11y: Use the appropriate GVariant for cache signals
Emmanuele Bassi [Thu, 19 Nov 2020 12:14:55 +0000 (12:14 +0000)]
a11y: Use the appropriate GVariant for cache signals

We need to wrap the argument for AddAccessible and RemoveAccessible into
a tuple, as that's what GDBus expects.

5 years agoAdwaita: revert edge-to-edge menuitems
Jakub Steiner [Tue, 17 Nov 2020 00:07:24 +0000 (01:07 +0100)]
Adwaita: revert edge-to-edge menuitems

- use the old Industrial style menuitems to make the design feel purposeful
- adjust corners to have compatible border-radii of child elements
- include sidebars and navigation sidebars to look consistent
  (plus the assistant sidebar)

Implements https://gitlab.gnome.org/GNOME/gtk/-/issues/3366

5 years agogl: add some debugging information to DEBUG_OPS
Christian Hergert [Thu, 19 Nov 2020 01:02:27 +0000 (17:02 -0800)]
gl: add some debugging information to DEBUG_OPS

5 years agolpr: fix cast warning
Christian Hergert [Thu, 19 Nov 2020 04:06:38 +0000 (20:06 -0800)]
lpr: fix cast warning

5 years agomacos: fix various compiler warnings
Christian Hergert [Thu, 19 Nov 2020 03:56:51 +0000 (19:56 -0800)]
macos: fix various compiler warnings

5 years agogl: use glFramebufferTexture2D to set framebuffer texture
Christian Hergert [Wed, 18 Nov 2020 04:11:18 +0000 (20:11 -0800)]
gl: use glFramebufferTexture2D to set framebuffer texture

When mapping a texture to the framebuffer, we can use the 2D
form instead of the cube mapping form.

5 years agogtk-demo: Rename some demos
Matthias Clasen [Wed, 18 Nov 2020 23:35:56 +0000 (18:35 -0500)]
gtk-demo: Rename some demos

This is just to make it easier for myself to
find the right sources.

5 years agodocs: Update GtkSensitivityType docs
Matthias Clasen [Wed, 18 Nov 2020 23:18:31 +0000 (18:18 -0500)]
docs: Update GtkSensitivityType docs

Don't talk about steppers here, since we are only using
this type for combobox buttons nowadays.

5 years agoscrollbar: Don't talk about steppers
Matthias Clasen [Wed, 18 Nov 2020 22:27:13 +0000 (17:27 -0500)]
scrollbar: Don't talk about steppers

There steppers were lost on the way from GtkRange
to GtkScrollbar, so don't talk about them in the docs.

5 years agogtk-demo: Add more keywords
Matthias Clasen [Wed, 18 Nov 2020 15:48:01 +0000 (10:48 -0500)]
gtk-demo: Add more keywords

Add GtkShortcutController as a keyword to some demos that
show its use.

5 years agoMerge branch 'wayland-minimize' into 'master'
Matthias Clasen [Wed, 18 Nov 2020 14:23:56 +0000 (14:23 +0000)]
Merge branch 'wayland-minimize' into 'master'

wayland: Implement minimization

Closes #2688

See merge request GNOME/gtk!2861

5 years agoMerge branch 'constraint-editor-work' into 'master'
Matthias Clasen [Wed, 18 Nov 2020 12:19:07 +0000 (12:19 +0000)]
Merge branch 'constraint-editor-work' into 'master'

Constraint editor work

See merge request GNOME/gtk!2863

5 years agoconstraint-editor: Fix creating constant constraints
Matthias Clasen [Wed, 18 Nov 2020 04:15:51 +0000 (23:15 -0500)]
constraint-editor: Fix creating constant constraints

We were not making the button sensitive in the case
of a constant constraint, and we were not properly
creating constant constraints either.

5 years agoconstraint-editor: Fix saving of constraints
Matthias Clasen [Wed, 18 Nov 2020 04:14:29 +0000 (23:14 -0500)]
constraint-editor: Fix saving of constraints

g_file_replace_contents take a gsize, so passing -1
for string length does not work here.